
from django.urls import path
from login import views

urlpatterns = [
    path('login/',views.LoginView.as_view()),#登录
    path('sendcode/', views.SendCodeView.as_view()),#发送验证码
    path('dingtalkauth/', views.DingTalkAuthView.as_view()),#钉钉登录
    path('callback/', views.DingTalkCallbackView.as_view()),  # 钉钉回调
    path('refresh_token/', views.RefreshTokenView.as_view()),#刷新token
    path('logout/', views.LogoutView.as_view()),#用户主动退出
    path('image/', views.CaptchaView.as_view()),#获取图片验证码
    path('verify/', views.VerifyCaptchaView.as_view()),#验证图片验证码
    path('detail/', views.UserDetailAPIView.as_view()),#用户详情
    path('update_detail/', views.UserDetailUpdateAPIView.as_view()),  # 用户详情更新
    path('giteelogin/', views.gitee_login),#码云(Gitee)登录
    path('giteecallback/', views.gitee_callback),#码云(Gitee)回调
    path('userauth/', views.UserAuthUpdateAPIView.as_view()),#用户实名认证
    path('getuserauth/', views.UserAuthDetailAPIView.as_view()),  # 查询认证
]
